package my.mybatis.common.response.base;

import java.io.Serializable;

/**
 * @Author:wangbin.
 * @Description.
 * @Date:Created in 16:58 2017/9/18.
 * @Modified By:
 */
public class ResultPageInfo implements Serializable{

    private static final long serialVersionUID = -5583871108082011073L;
    //当前页
    private int pageNo;
    //每页的数量
    private int pageSize;
    //总记录数
    private long totalCount;
    //总页数
    private int totalPages;

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public long getTotalCount() {
        return totalCount;
    }

    public void setTotalCount(long totalCount) {
        this.totalCount = totalCount;
    }

    public int getTotalPages() {
        return totalPages;
    }

    public void setTotalPages(int totalPages) {
        this.totalPages = totalPages;
    }

    public ResultPageInfo(int pageNo, int pageSize, long totalCount, int totalPages) {
        this.pageNo = pageNo;
        this.pageSize = pageSize;
        this.totalCount = totalCount;
        this.totalPages = totalPages;
    }
}
